﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GSLMS.Entity;
using System.ServiceModel;
using GSLMS.Entity.DTO;

namespace GSLMS.Services.Interface
{
    [ServiceContract(Name = "Module", Namespace = "http://www.haigu.com/")]
    public interface IModule
    {
        [OperationContract]
        List<Module> GetAll();
        [OperationContract]
        List<Module> GetAll(UniversallySearchParam searchparma);
        [OperationContract]
        Module GetByID(string id);
        [OperationContract]
        bool Add(Module model);
        [OperationContract]
        bool SaveAll(List<Module> models);
        [OperationContract]
        bool Update(Module model);
        [OperationContract]
        bool Delete(string  id);
        
    }
}
